package com.six.core.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.six.core.entity.Emp;
import com.six.core.mapper.EmpMapper;
import com.six.core.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @author:LiWei
 * @date:2023年02月27日12:28
 */
@Service
public class EmpServiceImpl extends ServiceImpl<EmpMapper,Emp> implements EmpService {


    @Autowired
    private EmpMapper empMapper;
    @Override
    public Emp findByName(String username) {
        QueryWrapper<Emp> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("username",username);
//        queryWrapper.eq("is_deleted",0);
        Emp emp = empMapper.selectOne(queryWrapper);
        return emp;
    }


}
